import heatmap
import random

class heatmap:
    def __init__(self):
        self.latlong = []
    
    def addpoint(self,lat,long):
        latlong.append((lat,long))
    
    def generateKML(self, filename):
        if latlong == []:
            return
        
        hm = heatmap.Heatmap()
        hm.heatmap(self.latlong, filename + ".png")
        hm.saveKML(filename + ".kml")
